package com.hyxt.provider;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hyxt.DO.AlarmInfo;
import com.hyxt.DO.GPSInfo;
import com.hyxt.api.HbaseCRUD;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
import java.util.List;

@Component
public class TestA {
    @Reference(version="1.0.0")
    HbaseCRUD hbaseCRUD;
    public  void getData() throws IOException, ParseException {
        //List<AlarmInfo> list = hbaseCRUD.scanAlarmHistroyDate("99999999", new Date(2014 - 1900, 9, 1, 0, 0), new Date(2014 - 1900, 9, 10, 0, 0));

        List<GPSInfo> list = hbaseCRUD.scanHistroyDate("99999999", new Date(2014 - 1900, 9, 1, 0, 0), new Date(2014 - 1900, 9, 10, 0, 0));
        System.out.println(list.size());
    }
}
